<script>
APP = {
	base: '<?php echo site_url(array('users',$usrAlias,'bap'))?>',
	utils: '<?php echo site_url(array('utils'))?>',
	newBAP:{
		'table':'newBAP_table',
		'pagination':'newBAP_tablePagination',
		'content':'newBAP_tableContent',
		'form':'newBAP_frm'
	},
	activeBAP:{
		'table':'activeBAP_table',
		'pagination':'activeBAP_tablePagination',
		'content':'activeBAP_tableContent',
		'form':'activeBAP_frm'
	},
	counterBAP:{
		'table':'counterBAP_table',
		'pagination':'counterBAP_tablePagination',
		'content':'counterBAP_tableContent',
		'form':'counterBAP_frm'
	},
	rejectBAP:{
		'table':'rejectBAP_table',
		'pagination':'rejectBAP_tablePagination',
		'content':'rejectBAP_tableContent',
		'form':'rejectBAP_frm'
	},
	approveBAP:{
		'table':'approveBAP_table',
		'pagination':'approveBAP_tablePagination',
		'content':'approveBAP_tableContent',
		'form':'approveBAP_frm'
	}
};
</script>

<h2 style="border-bottom: 1px solid #ccc;">Laporan BAP</h2>
<h3 style="padding-top:0; padding-bottom:0">Aktif</h3>
<form id="activeBAP_frm" action="<?php echo site_url(array('users',$usrAlias,'bap','ajax','search','SA')) ?>">
	<input type="hidden" name="offset" value="" />
	<input type="hidden" name="limit" value="<?php echo $limit?>" />
	<input type="hidden" name="orderby" value="" />
</form>
<table id="activeBAP_table" class="zebraable" cellpadding="5" cellspacing="0" width="100%">
<tr class="header">
	<td>Tgl Lapor</td>
	<td>Tgl Kejadian</td>
	<td>Jenis</td>
	<td>Bidang</td>
	<td>Tingkat</td>
	<td>Kategori</td>
	<td></td>
</tr>
<tbody id="activeBAP_tableContent"></tbody>
</table>
<div style="margin-top:10px; margin-right: 6px" align="right">
	<div id="activeBAP_tablePagination" class="pagination" style="display: inline;"></div>
</div>

<h3 style="padding-top:0; padding-bottom:0">Permohonan persetujuan</h3>
<form id="newBAP_frm" action="<?php echo site_url(array('users',$usrAlias,'bap','ajax','search','SI')) ?>">
	<input type="hidden" name="offset" value="" />
	<input type="hidden" name="limit" value="<?php echo $limit?>" />
	<input type="hidden" name="orderby" value="" />
</form>
<table id="newBAP_table" class="zebraable" cellpadding="5" cellspacing="0" width="100%">
<tr class="header">
	<td>Tgl Lapor</td>
	<td>Tgl Kejadian</td>
	<td>Jenis</td>
	<td>Bidang</td>
	<td>Tingkat</td>
	<td>Kategori</td>
	<td></td>
</tr>
<tbody id="newBAP_tableContent"></tbody>
</table>
<div style="margin-top:10px; margin-right: 6px" align="right">
	<div id="newBAP_tablePagination" class="pagination" style="display: inline;"></div>
</div>

<h3 style="padding-top:0; padding-bottom:0">Permohonan Klarifikasi</h3>
<form id="counterBAP_frm" action="<?php echo site_url(array('users',$usrAlias,'bap','ajax','search','CO')) ?>">
	<input type="hidden" name="offset" value="" />
	<input type="hidden" name="limit" value="<?php echo $limit?>" />
	<input type="hidden" name="orderby" value="" />
</form>
<table id="counterBAP_table" class="zebraable" cellpadding="5" cellspacing="0" width="100%">
<tr class="header">
	<td>Tgl Lapor</td>
	<td>Tgl Kejadian</td>
	<td>Jenis</td>
	<td>Bidang</td>
	<td>Tingkat</td>
	<td>Kategori</td>
	<td></td>
</tr>
<tbody id="counterBAP_tableContent"></tbody>
</table>
<div style="margin-top:10px; margin-right: 6px" align="right">
	<div id="counterBAP_tablePagination" class="pagination" style="display: inline;"></div>
</div>

<h3 style="padding-top:0; padding-bottom:0">Klarifikasi diterima</h3>
<form id="approveBAP_frm" action="<?php echo site_url(array('users',$usrAlias,'bap','ajax','search','CA')) ?>">
	<input type="hidden" name="offset" value="" />
	<input type="hidden" name="limit" value="<?php echo $limit?>" />
	<input type="hidden" name="orderby" value="" />
</form>
<table id="approveBAP_table" class="zebraable" cellpadding="5" cellspacing="0" width="100%">
<tr class="header">
	<td>Tgl Lapor</td>
	<td>Tgl Kejadian</td>
	<td>Jenis</td>
	<td>Bidang</td>
	<td>Tingkat</td>
	<td>Kategori</td>
	<td></td>
</tr>
<tbody id="approveBAP_tableContent"></tbody>
</table>
<div style="margin-top:10px; margin-right: 6px" align="right">
	<div id="approveBAP_tablePagination" class="pagination" style="display: inline;"></div>
</div>

<h3 style="padding-top:0; padding-bottom:0">Klarifikasi ditolak</h3>
<form id="rejectBAP_frm" action="<?php echo site_url(array('users',$usrAlias,'bap','ajax','search','CR')) ?>">
	<input type="hidden" name="offset" value="" />
	<input type="hidden" name="limit" value="<?php echo $limit?>" />
	<input type="hidden" name="orderby" value="" />
</form>
<table id="rejectBAP_table" class="zebraable" cellpadding="5" cellspacing="0" width="100%">
<tr class="header">
	<td>Tgl Lapor</td>
	<td>Tgl Kejadian</td>
	<td>Jenis</td>
	<td>Bidang</td>
	<td>Tingkat</td>
	<td>Kategori</td>
	<td></td>
</tr>
<tbody id="rejectBAP_tableContent"></tbody>
</table>
<div style="margin-top:10px; margin-right: 6px" align="right">
	<div id="rejectBAP_tablePagination" class="pagination" style="display: inline;"></div>
</div>